﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<JLL.China.Model.Admin>" %>
<tr>
    <th valign="top">
        <span class="mandate">*</span> User Name:
    </th>
    <td>
        <%= Html.TextBoxFor(model => model.UserName,new { @class = "inp-form required"})%>
    </td>
    <td>
        <label class="error" for="firstname">
            <div class="error-left">
            </div>
            <div class="error-inner">
                This field is required.</div>
        </label>
    </td>
</tr>
<tr>
    <th valign="top">
        <span class="mandate">*</span> Password:
    </th>
    <td>
        <input type="text" name="lastname" id="lastname" class="inp-form required" />
    </td>
    <td>
        <label class="error" for="lastname">
            <div class="error-left">
            </div>
            <div class="error-inner">
                This field is required.</div>
        </label>
    </td>
</tr>
<tr>
    <th valign="top">
        <span class="mandate">*</span> Super Admin:
    </th>
    <td>
        <%= Html.RadioButtonFor(model => model.IsSupperAdmin, true) %>
        Yes &nbsp;&nbsp;
        <%= Html.RadioButtonFor(model => model.IsSupperAdmin, false)%>
        No
    </td>
    <td>
    </td>
</tr>
<tr>
    <th valign="top" name="status" id="status" class="required">
        <span class="mandate">*</span> Status:
    </th>
    <td>
        <div class="select_holder">
            <%=Html.DropDownListFor( m => m.IsActive, new List<SelectListItem>
                     {
                        new SelectListItem{ Text="Active", Value = "true" }, 
                        new SelectListItem{ Text="Inactive", Value = "false" },
                     }, new { @class = "styledselect_form_1" })%>
        </div>
    </td>
    <td>
        <label class="error" for="status">
            <div class="error-left">
            </div>
            <div class="error-inner">
                This field is required.</div>
        </label>
    </td>
</tr>
<tr>
    <th valign="top" name="status" id="Th1" class="required">
        <span class="mandate">*</span> Role:
    </th>
    <td>
        <div class="select_holder">
            <select class="styledselect_form_1" id="Select1" name="status">
                <option value="1">Sale</option>
                <option value="0">Rent</option>
                <option value="0">Local</option>
                <option value="0">International</option>
            </select>
        </div>
    </td>
    <td>
        <label class="error" for="status">
            <div class="error-left">
            </div>
            <div class="error-inner">
                This field is required.</div>
        </label>
    </td>
</tr>
